import axios from './axios';

/**
 * 相关接口的编写
 * 
 */


export const getMenu = (param) => {
    return axios.request({
        //接口的相关地址
        url:'/permission/getMenu',
        method: 'post',
        data: param
    })
}

export const getData = () => {
    return axios.request({
        url: '/home/getData',
        method: 'get'
    })
}

export const getUser = (params) => {
    return axios.request({
        url: '/user/getUser',
        method: "get",
        params
    })
}